package com.mf.entity.request.upload;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 初始化文件上传
 */
@Data
@NoArgsConstructor
public class FileInitSliceDataReq {
    @NotBlank(message = "md5不能为空")
    @Schema(description = " 整个文件的md5")
    private String md5;


    @Schema(description = "总分片个数")
    private Integer totalSlice;
    @Schema(description = "是否分片 0：不分片 1:分片")

    @NotNull(message = "是否分片不能为空")
    private Integer isSlice;

    @NotBlank(message = "文件名称不能为空")
    @Schema(description = "源文件名称")
    private String originalFileName;

    @NotNull(message = "文件size不能为空")
    @Schema(description = "文件大小")
    private Double fileSize;

    @Schema(description = "分片的文件大小")
    private Double sliceFileSize;

    @Schema(description = "文件类型")
    private String fileType;

    @Schema(description = "文件区域")
    private String fileArea;

    @Schema(description = "文件绑定id")
    private String fileBindId;

    @Schema(description = "文件后缀")
    private String fileSuffix;

    @NotBlank(message = "桶不能为空！")
    @Schema(description = "文件桶")
    private String bucketName;

    @Schema(description = "文件备注")
    private String remark;
}
